import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import './plugins/element.js'
import 'normalize.css'
import '@/assets/css/base.css'
import router from './router/vue-router'
import axios from 'axios'
Vue.prototype.axios=axios
// 全局用这个项目只是home页面用
//import * as echarts from 'echarts'
//Vue.prototype.$echarts=echarts
Vue.use(VueRouter)
Vue.config.productionTip = false
// import i18n from './lang'
new Vue({
  // i18n,
  render: h => h(App),
  router
}).$mount('#app')

//在请求时带上token
axios.interceptors.request.use(
  (config)=>{
    let token=localStorage.getItem("Cookie_7")
    config.headers={
      Authorization:token,
    }
    return config
  }
)


